home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1306 / ptw32.zip / PTWAPI.H < prev    next >
Text File  |  1995-05-02  |  2KB  |  47 lines

  1.  
  2. /* Error codes returned from PTWAPI functions */
  3.  
  4. #define PTW_OK                        0
  5. #define PTW_ERROR                    1
  6. #define PTW_PS_NOT_AVAILABLE    2
  7. #define PTW_PS_NOT_CONNECTED    3
  8.  
  9. /* Functions in PTWAPI.DLL */
  10.  
  11.  
  12. DWORD WINAPI PTW_Connect_PS (DWORD FAR *hinstance, LPSTR session_name);
  13. DWORD WINAPI PTW_Disonnect_PS (DWORD hinstance);
  14. DWORD WINAPI PTW_Copy_PS (DWORD hinstance, LPSTR area);
  15. DWORD WINAPI PTW_Copy_PS_To_String (DWORD hinstance, LPSTR area,
  16.                                                 UINT row, UINT col, UINT length);
  17. DWORD WINAPI PTW_Copy_PS_To_Rect (DWORD hinstance, LPSTR area,
  18.                                              UINT row, UINT col,
  19.                                              UINT rows, UINT cols);
  20. DWORD WINAPI PTW_Copy_Attr (DWORD hinstance, LPSTR area);
  21. DWORD WINAPI PTW_Copy_Attr_To_String (DWORD hinstance, LPSTR area,
  22.                                                   UINT row, UINT col, UINT length);
  23. DWORD WINAPI PTW_Copy_Attr_To_Rect (DWORD hinstance, LPSTR area,
  24.                                                 UINT row, UINT col,
  25.                                                 UINT rows, UINT cols);
  26. DWORD WINAPI PTW_Copy_Charset (DWORD hinstance, LPSTR area);
  27. DWORD WINAPI PTW_Copy_Charset_To_String (DWORD hinstance, LPSTR area,
  28.                                                       UINT row, UINT col, UINT length);
  29. DWORD WINAPI PTW_Copy_Charset_To_Rect (DWORD hinstance, LPSTR area,
  30.                                                     UINT row, UINT col,
  31.                                                     UINT rows, UINT cols);
  32. DWORD WINAPI PTW_Copy_Color (DWORD hinstance, LPSTR area);
  33. DWORD WINAPI PTW_Copy_Color_To_String (DWORD hinstance, LPSTR area,
  34.                                                     UINT row, UINT col, UINT length);
  35. DWORD WINAPI PTW_Copy_Color_To_Rect (DWORD hinstance, LPSTR area,
  36.                                                  UINT row, UINT col,
  37.                                                  UINT rows, UINT cols);
  38. DWORD WINAPI PTW_Get_Cursor_Location (DWORD hinstance,
  39.                                                   UINT FAR *row, UINT FAR *col);
  40. DWORD WINAPI PTW_Get_Columns_Per_Line (DWORD hinstance, UINT FAR *cols);
  41. DWORD WINAPI PTW_Get_Rows_Per_Page (DWORD hinstance, UINT FAR *rows);
  42. DWORD WINAPI PTW_Copy_String_To_PS (DWORD hinstance, LPSTR area,
  43.                                                 UINT row, UINT col, UINT length);
  44. DWORD WINAPI PTW_Send_Keys (DWORD hinstance, LPSTR keys);
  45. DWORD WINAPI PTW_Exec_Script (DWORD hinstance, LPSTR script, LPSTR area, SHORT max_length);
  46. DWORD WINAPI PTW_Exec_Command (DWORD hinstance, LPSTR command, LPSTR area, SHORT max_length);
  47.